package com.zzw.basic.jdk8;

import java.util.HashMap;
import java.util.Map;

public class HashMapTest {

    public static void main(String[] args) {
        Map<String,String> map = new HashMap<>();
        map.put("A","A");
        map.put("B","B");
        map.put("C","C");
        map.put("D","D");

        map.forEach((k,v)->{
            System.out.println(k + "---" + v);
        });
    }
}
